<script setup>
// This starter template is using Vue 3 <script setup> SFCs
// Check out https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup
import HelloWorld from './components/HelloWorld.vue'
</script>

<template>
  <router-view></router-view>
</template>


<script>
export default {
  provide() {
    return {
      reload: this.reload //提供数据
    }
  },data() {
    return {
      isRouterAlive:true,
    }
  },
  methods: {
    reload(){
      this.isRouterAlive=false
      this.$nextTick(()=>{
        this.isRouterAlive=true
        console.log("确实刷新了")
      })
    }
    
  },mounted(){
    
  }
};
</script>
<style>
#app {
  background: fixed rgb(242, 242, 243);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
}

#ihead {
  padding: 1px;
}

#imain {
  padding: 5px;
}

.menu {
  border-radius: 5px
}
</style>
